Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: component would fail to load when using an instantsearch adapter #16

Merged
merged 2 commits into from
Sep 15, 2023
Merged

fix: component would fail to load when using an instantsearch adapter #16

merged 2 commits into from
Sep 15, 2023

Conversation

djdembeck
Copy link
Contributor

Using an adapter such as Typesense, which doesn't have the addAlgoliaAgent function, could cause this component to not load.

Since this is just for the search user agent, it shouldn't be mission-critical if it fails to change the user agent string:
https://www.algolia.com/doc/api-client/getting-started/customize/javascript/?client=javascript#custom-user-agents

@vercel
Copy link

vercel bot commented Aug 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
svelte-algolia-instantsearch ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 10, 2023 8:53pm

@knd775
Copy link

knd775 commented Aug 25, 2023

Thanks, I was ready to fork the project over this

src/lib/InstantSearch.svelte Outdated Show resolved Hide resolved
@djdembeck
Copy link
Contributor Author

Hey @aymeric-giraudet just following up if you were able to re-review the changes I accepted. Thanks!

@aymeric-giraudet
Copy link
Owner

aymeric-giraudet commented Sep 15, 2023

Hey @djdembeck, looks good ! Thanks !
I'll put this in the 0.10.1 release :)

@aymeric-giraudet aymeric-giraudet merged commit 8926e29 into aymeric-giraudet:main Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants